#include <stdio.h>
main()
{
    int a[3][4]= {{1,2,3,4},{5,6,7,8},{9,10,11,12}};
    int *p, row, col;
    p=a[0];
    printf("Input row = ");
    scanf("%d",&row);
    printf("Input col = ");
    scanf("%d",&col);
    printf("a[%d][%d]=%d\n", row,col, *(p+(row*4+col)));
}
